import request from '@/utils/request'

export default {
    //---------------------------------------------------------------
    //查询教师信息
    pageStudent(current, limit, studentDto) {
        return request({
            url: `/api/student/pageStudent/${current}/${limit}`,
            method: 'post',
            data:studentDto
        })
    },
    //添加学生
    addStudent(sysStudent){
        return request({
            url: `/api/student/addStudent`,
            method: 'post',
            data:sysStudent
        })
    },
    //查询一个学生信息
    getStudentById(id){
        return request({
            url: `/api/student/getStudentById/${id}`,
            method: 'get'
        })
    },
    updateStudent(sysStudent){
        return request({
            url: `/api/student/updateStudent`,
            method: 'post',
            data:sysStudent
        })
    },
    //删除学生
    delStudent(id){
        return request({
            url: `/api/student/delStudent/${id}`,
            method: 'delete'
        })
    }




}

